package com.lut.edu.apm.webCenter.controller;


import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Zhao Suzhen
 * @date `2024/3/24`
 */
@Controller
public class PageRout {

    /** 扫码购物 */
    @RequestMapping("/")
    public String index(){
        return "productPayment";
    }

    /** 扫码购物 */
    @RequestMapping("/productPayment")
    public String productPayment() {
        return "productPayment";
    }

    /** 商品管理 */
    @RequestMapping("/productManag")
    @PreAuthorize("hasAuthority('admin:manag')")
    public String productManag() {
        return "ProductManag";
    }

    /** 用户信息页面 */
    @RequestMapping("/userShow")
    public String userInfo(){
        return "UserShow";
    }

    /** 管理员登录页面 */
    @RequestMapping("/managLogin")
    public String login(){
        return "login";
    }
}
